<template>
	<view class="portal-detail-wrapper">
		<view class="content-wrapper">
			<text class="title">{{info.title}}</text>
			<p style="font-size: .6rem;">发布时间：{{info.time}}</p>
			<p v-html="info.content"></p>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {}
			}
		},
		onLoad(option) {
			this.api_detail(option.id)
		},
		// onShareAppMessage() {
		// 	return {
				
		// 	}
		// },
		methods: {
			api_detail(id) {
				this.$app._post_form("entry/wxapp/zixun.detail", {
					id: id
				}, (res) => {
					console.log(res)
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.portal-detail-wrapper {
		width: 100%;
		height: 100%;
		padding: 15px;
		box-sizing: border-box;
		.content-wrapper {
			border-radius: 6px;
			border: 1px solid #e3e3e3;
			padding: 10px;
			line-height: 25px;
			background-color: #f5f5f5;
			font-size: .9rem;
			color: #757575;
			.title {
				font-size: 1.2rem;
				color: #000;
			}
		}
		
	}
</style>